package org.javacore.base.String;

/**
 * Created by Administrator on 2017/2/14.
 */
public class PassValueT1 {
    public static void main(String[] args) {
        Value value = new Value();
        value.setNumber1(10);
        value.setNumber2(20);
        change(value);
        System.out.println(value.getNumber1());
        System.out.println(value.getNumber2());
    }

    static void change(Value value){
        value.setNumber1(100);
        value.setNumber2(100);
    }
}

class Value {
    int number1;
    int number2;

    public int getNumber1() {
        return number1;
    }

    public void setNumber1(int number1) {
        this.number1 = number1;
    }

    public int getNumber2() {
        return number2;
    }

    public void setNumber2(int number2) {
        this.number2 = number2;
    }
}
